Conversation
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (58)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
nit: duplicated
Extract to a shared utility. |
|
nit: inconsistent discriminator type declarations Some discriminators are // number (transfer.ts, approve.ts, burn.ts)
const LIGHT_TOKEN_TRANSFER_CHECKED_DISCRIMINATOR = 12;
const LIGHT_TOKEN_APPROVE_DISCRIMINATOR = 4;
// Buffer (freeze.ts, thaw.ts)
const LIGHT_TOKEN_FREEZE_ACCOUNT_DISCRIMINATOR = Buffer.from([10]);
const LIGHT_TOKEN_THAW_ACCOUNT_DISCRIMINATOR = Buffer.from([11]);Pick one convention. |
|
nit: buffer over-allocation in ATA encoding
const buffer = Buffer.alloc(2000);The Borsh-encoded |
Replace @lightprotocol/compressed-token/unified with the new @lightprotocol/token-interface package (pending publish of Lightprotocol/light-protocol#2362). - Use createTransferInstructions (object params, flat array return) - Use getAta for aggregated balance check - Use toKitInstructions from /kit export for native v2 conversion - Delete convertV1InstructionToV2 from utils.ts (replaced by /kit) - Remove pre-transaction batch splitting (SDK handles inline) - Fix spec fee payer terminology
No description provided.